#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "model.h"
#include "bgddialog.h"
#include "varwidget.h"
#include "galdialog.h"
#include "argdialog.h"
#include "defdialog.h"
#include "itsdialog.h"

class QLabel;
class QAction;
class QMenu;

class MainWindow : public QMainWindow
{

Q_OBJECT

public:
    MainWindow();

   void createActions();
   void createMenus();

public slots:
    void newFile();
    void open();
    void save();
   //void exit() - zaimplementowa w QT, slot close;
    void variables();
    void background();
    void gallery();
    void arrangement();
    void defaultF();
    void itemsF();

private:
    QLabel *infoLabel; //niepotrzebna


    QMenu *fileMenu;//
    QAction *newFileAct;
    QAction *saveAct;
    QAction *openAct;
    QAction *exitAct;

    QMenu *toolsMenu;//
    QAction *backgroundAct;
    QAction *variablesAct;
    QAction *galleryAct;
    QAction *arrangmentAct;
    QAction *itemsAct;
    QAction *defaultAct;
    XmlModel MainModel;//nasz model

//funkcje
    varDialog* varWindow;
    bgdDialog* bgdFunc; //funkcja do edycji tla
    galDialog* galWindow;
    argDialog* argWindow;
    defDialog* defWindow;
    itsDialog* itsWindow;
};

#endif // MAINWINDOW_H
